﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BIPorter.Common;
using System.Xml.Linq;
using BIPorter.Common.BLL;

namespace BIPorter.Site.Controllers
{
    public class HomeController : BaseController
    {
        #region Action

        /// <summary>
        /// 管理主界面
        /// </summary>
        /// <returns></returns>
        public ActionResult Default()
        {
            return View();
        }

        /// <summary>
        /// 返回菜单信息
        /// </summary>
        /// <returns></returns>
        public ActionResult ShowMainMenu()
        {
            MenuBll menuBll = new MenuBll();
            AccountBll accountBll = new AccountBll();
            var accountModel = base.CurrentUser;
            //TODO 若需要根据角色来加载菜单则去除如下注释即可
            //return PartialView(menuBll.GetShowMenuList(accountModel.Role));
            return PartialView(menuBll.GetShowMenuList());
        }

        #endregion

  

    }
}
